Release 10.1A: OpenEdge Getting Started:
Progress OpenEdge Studio
Publish and Subscribe module
The Publish and Subscribe module demonstrates the Progress 4GL named-event functionality. The module uses two event publishers,
publisher1.wandpublisher2.w, and two event subscribers,subscriber1.wandsubscriber2.w. A driver procedure,subpub.p, starts the publisher procedures as persistent procedures. The driver then starts the subscriber procedures, passing to them the handles for the persistent publisher procedures.
![]()
To launch this module, choose the Publish and Subscribe button on the SportsPro main window. The following dialog boxes appear:
![]()
The publish and subscribe functionality works like an e-mail alias. When users subscribe to an e-mail alias, they receive messages whenever messages are published to that alias. Other persistent procedures running in the same session can locate a procedure that generates an event of interest. The persistent procedures subscribe to that event by mapping the event to an internal procedure that is executed when the event occurs.
Table 2–9 describes the major objects used in the Publish and Subscribe module.
For more information on publishing and subscribing to named events, see the chapter on user-defined functions in the OpenEdge Development: Progress 4GL Handbook .
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |